package cn.itcast.ecshop.bean.request;

import java.util.HashMap;
import java.util.Map;

import cn.itcast.ecshop.net.BaseRequest;
import cn.itcast.ecshop.utils.Constant;

/**
 * Created by Administrator on 2016/8/4.
 */
public class OrderSubmitRequest extends BaseRequest {

    private String userid;
    private String sku;
    private String addressId;
    private String paymentType;
    private String deliveryType;
    private String invoiceType;
    private String invoiceTitle;
    private String invoiceContent;




    @Override
    public String getUrl() {
        return Constant.formatUrl("ordersumbit");
    }

    @Override
    public HttpMethod getHttpMethod() {
        return HttpMethod.POST;
    }

    @Override
    public Map<String, String> getParams() {

        HashMap<String, String> map = new HashMap<>();
        map.put("sku", "1:3:1,2,3,4|2:2:2,3");
        map.put("addressId", "139");
        map.put("paymentType", "1");
        map.put("deliveryType", "1");
        map.put("invoiceType", "1");
        map.put("invoiceTitle", "传智慧播客教育科技有限公司");
        map.put("invoiceContent", "耗材");
        return map;
    }

    @Override
    public Map<String, String> getHeaders() {
        HashMap<String, String> map = new HashMap<>();
        map.put("userid", "20428");
        return map;
    }
}
